package com.cloud.feign.test.client;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

@Component
public class HelloClientFallback implements HelloClient{
    @Override
    public ResponseEntity<String> feignThreadTest() {
        System.out.println(Thread.currentThread().getName());
        return new ResponseEntity<>("服务器繁忙，请稍后再试！", HttpStatus.INTERNAL_SERVER_ERROR);
    }

    @Override
    public ResponseEntity<String> feignThreadTest2() {
        System.out.println(Thread.currentThread().getName());
        return new ResponseEntity<>("服务器繁忙，请稍后再试！", HttpStatus.INTERNAL_SERVER_ERROR);
    }
}
